<template>
  <div class="not-found">
    <div class="content">
      <img src="@/assets/404.jpg" alt="404" class="not-found-image" />
      <h1 class="not-found-title">您访问的页面不存在</h1>
      <router-link to="/" class="home-link">返回首页</router-link>
    </div>
  </div>
</template>

<script>
export default {
  name: 'NotFound',
}
</script>

<style scoped>
.not-found {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background: #f7f7f7;
  font-family: 'Arial', sans-serif;
}

.content {
  text-align: center;
  max-width: 600px;
}

.not-found-image {
  width: 250px;
  height: auto;
  margin-bottom: 20px;
}

.not-found-title {
  font-size: 2.5rem;
  font-weight: bold;
  color: #333;
  margin-bottom: 10px;
}

.not-found-description {
  font-size: 1.2rem;
  color: #666;
  margin-bottom: 20px;
}

.home-link {
  text-decoration: none;
  background-color: #4CAF50;
  color: white;
  padding: 10px 20px;
  border-radius: 5px;
  font-size: 1rem;
  transition: background-color 0.3s ease;
}

.home-link:hover {
  background-color: #45a049;
}
</style>
